@import '~antd/es/style/themes/default.less';

@pro-header-hover-bg: rgba(0, 0, 0, 0.025);

.logo {
  height: 48px;
  line-height: 48px;
  margin: 0 16px;
  text-align: center;
  color: #fff;
  font-weight: bold;
  font-size: 18px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}
.sidebar {
  height: calc(100vh - 48px) !important;
}
.layout {
  transition: all 0.3s;
  position: relative;
  display: flex;
  flex-direction: column;
}
.header {
  background: #fff;
  height: 48px;
  line-height: 48px;
  padding: 0 30px;
  //position: fixed;
  //top: 0;
  //right: 0;
  //left: 0;
}
.content {
  flex: auto;
  padding: 24px;
  background: #f0f2f5;
}

.right {
  display: flex;
  float: right;
  height: 48px;
  margin-left: auto;
  overflow: hidden;
  cursor: pointer;
  .action {
    display: flex;
    align-items: center;
    height: 48px;
    padding: 0 12px;
    cursor: pointer;
    transition: all 0.3s;
    &:hover {
      background: @pro-header-hover-bg;
    }
    &:global(.opened) {
      background: @pro-header-hover-bg;
    }
  }
  .search {
    padding: 0 12px;
    &:hover {
      background: transparent;
    }
  }
  .account {
    .avatar {
      margin-right: 8px;
      color: @primary-color;
      vertical-align: top;
      background: rgba(255, 255, 255, 0.85);
    }
    .name {
      margin-left: 12px;
    }
  }
}

.dark {
  .action {
    &:hover {
      background: #252a3d;
    }
    &:global(.opened) {
      background: #252a3d;
    }
  }
}
